import{d as n,a9 as p,s as a,aX as c,c as m,o as i,w as u,aO as k}from"./CtbHscGXagutd.js";const w=n({__name:"app-link",props:{workspace:{type:[String,Boolean]},page:{},pageId:{},name:{},test:{type:[String,Boolean]}},setup(o){const e=o,r=p(()=>{if(e.workspace===!0)return{name:"workspace",params:{workspaceId:a.workspace?.id}};if(e.name)return{name:e.name};if(typeof e.test=="string")return{name:e.test?e.test:"test"};const t=e.workspace?e.workspace:a.workspace?.id;return t?{name:"workspace",params:{workspaceId:t,itemId:e.page,subId:e.pageId}}:{name:"home"}});return(t,d)=>{const s=c("router-link");return i(),m(s,{to:r.value},{default:u(()=>[k(t.$slots,"default")]),_:3},8,["to"])}}});export{w as _};